package com.ggleaf.spdemo.bean;

import java.io.Serializable;

/**
 * 优惠券
 */
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键key
     */
    private Long id;

    /**
     * 类型
     * “1”. 打折券：提供一定的折扣，有9折优惠券。
     * “2”. 满减券：消费达到一定金额后可以减免一部分，有满5000减100。
     */
    private String type;

    /**
     *
     */
    private String name;

    /**
     *
     */
    private String description;

    /**
     * 满减满足额度
     */
    private String enoughAmount;

    /**
     * 减去的额度
     */
    private String reducedAmount;

    /**
     * 打折, 例如九折 就是 0.9
     */
    private Double discount;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getEnoughAmount() {
        return enoughAmount;
    }

    public void setEnoughAmount(String enoughAmount) {
        this.enoughAmount = enoughAmount;
    }

    public String getReducedAmount() {
        return reducedAmount;
    }

    public void setReducedAmount(String reducedAmount) {
        this.reducedAmount = reducedAmount;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }
}
